var e = getApp();

Page({
    data: {
        ad: {}
    },
    onShow(){
        this.getRandomAd()
        getApp().chaping()
    },
    onLoad: function(o) {
        getApp().getRandomAd(true,this)
        this.getRandomAd(true)
    },
    onShareAppMessage: function() {
        return {
            title: "快速拼图-图片编辑助手",
            path: "pages/spliceMenu/spliceMenu"
        };
    },
    chooseSpliceLongImg: function() {
        wx.navigateTo({
            url: "/pages/screenshotConnect/screenshotConnect"
        });
    },
    chooseSpliceFrame: function() {
        wx.navigateTo({
            url: "../splicePhoto/splice?choosed=photoFrame"
        });
    }
});